﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WH.Common.Constant
{
    /// <summary>
    /// 业务功能
    /// </summary>
    public static class BusinessFunction
    {
        public const string SuperAdminId = "999999999";

        /// <summary>
        /// 默认头像地址
        /// </summary>
        public const string DefaultAvatarSrc = "/src/default/avatar.jpg";

        /// <summary>
        /// 验证码缓存Key
        /// </summary>
        public const string CaptchaCacheKey = "cache_verifycode";

        /// <summary>
        /// 登录锁定时间
        /// </summary>
        public const string TrialTimes = "TrialTimes";

        /// <summary>
        /// 顶级机构id
        /// </summary>
        public const string TopParentId = "0";

        /// <summary>
        /// 管理员
        /// </summary>
        public const string RoleTypeCode_GLY = "ROLE_TYPE_GLY";

        /// <summary>
        /// 角色类型编号
        /// </summary>
        public const string RoleTypeKey = "ROLE_TYPE";

        /// <summary>
        /// 用户类型编号
        /// </summary>
        public const string UserTypeKey = "USER_TYPE";

        /// <summary>
        /// 机构类型
        /// </summary>
        public const string OrganizationTypeKey = "ORG_TYPE";

        /// <summary>
        /// 设备类型
        /// </summary>
        public const string DEVICE_TYPE = "DEVICE_TYPE";

        /// <summary>
        /// 网关设备类型
        /// </summary>
        public const string GATEWAY_TYPE = "DEVICE_CATEGORY_GATEWAY_02";
        /// <summary>
        /// 终端设备类型
        /// </summary>
        public const string DeviceCategoryTerminal = "DEVICE_CATEGORY_TERMINAL_01";
        /// <summary>
        /// 摄像头设备类型
        /// </summary>
        public const string DeviceCategoryCamera = "DEVICE_CATEGORY_CAMERA";
        /// <summary>
        /// 集采盒子设备类型
        /// </summary>
        public const string DeviceCategoryDataBox = "DEVICE_CATEGORY_DATABOX";
        /// <summary>
        /// 巡更人员类型
        /// </summary>
        public const string PERSON_TYPE = "PERSON_TYPE";

        /// <summary>
        /// 基础平台无效状态
        /// </summary>
        public const string SaasDisableStatus = "0";

        /// <summary>
        /// 基础平台有效状态
        /// </summary>
        public const string SaasEnableStatus = "1";


        /// <summary>
        /// 绑定者类型
        /// </summary>
        public const string BINDER_TYPE = "BINDER_TYPE";

        /// <summary>
        /// 巡更告警类型
        /// </summary>
        public const string WarnCategory04 = "WarnCategory04";

        /// <summary>
        /// 巡更点类型 区域
        /// </summary>
        public const string PATROL_LOCATION_TYPE_AREA = "PATROL_LOCATION_TYPE_AREA";

        /// <summary>
        /// 绑定者类型_警察
        /// </summary>
        public const string PRISON_STAFF = "PRISON_STAFF";

        /// <summary>
        /// 绑定者类型_犯人
        /// </summary>
        public const string PRISON_PRISONER = "PRISON_PRISONER";
        /// <summary>
        /// 绑定者类型_监狱资产
        /// </summary>
        public const string PRISON_ASSET = "PRISON_ASSET";

        /// <summary>
        /// 告警设备类型
        /// </summary>
        public const string DeviceClassification = "DeviceClassification";

        /// <summary>
        /// 告警等级
        /// </summary>
        public const string WarningLevel = "WarningLevel";

        /// <summary>
        /// 告警状态
        /// </summary>
        public const string WarnStatus = "WarnStatus";

        /// <summary>
        /// 告警类别
        /// </summary>
        public const string WarnCategory = "WarnCategory";

        /// <summary>
        /// 告警类别
        /// </summary>
        public const string WARN_TYPE = "WARN_TYPE";

        /// <summary>
        /// 字典缓存Key
        /// </summary>
        public const string KeyValueCacheKey = "KeyValueCaches";

        /// <summary>
        /// 设备在线状态
        /// </summary>
        public const string DeviceStatusCacheKey = "DeviceStatus";
        /// <summary>
        /// 能耗设备状态
        /// </summary>
        public const string DeviceEnergyTeStatusCacheKey = "EnergyDeviceStatus";

        /// <summary>
        /// 网关在线状态
        /// </summary>
        public const string GatewayOnlineStatusCacheKey = "GatewayOnlineStatus";
        /// <summary>
        /// 告警类型分组
        /// </summary>
        public const string ALARM_RULES_SETTING = "ALARM_RULES_SETTING";


        /// <summary>
        /// 主菜单
        /// </summary>
        public const int rt_0 = 0;

        /// <summary>
        /// 子菜单
        /// </summary>
        public const int rt_1 = 1;

        /// <summary>
        /// 按钮
        /// </summary>
        public const int rt_2 = 2;

        /// <summary>
        /// 待定
        /// </summary>
        public const int rt_3 = 3;

        /// <summary>
        /// 地图
        /// </summary>
        public const int rt_100 = 100;

        /// <summary>
        /// 区域
        /// </summary>
        public const int rt_200 = 200;

        /// <summary>
        /// 告警
        /// </summary>
        public const int rt_300 = 300;

        /// <summary>
        /// 关键字查询字段
        /// </summary>
        public static string[] KeywordFields = new string[] { "Name", "Code", "IdCode" };

        /// <summary>
        /// 重点犯人类型
        /// </summary>
        public const string IMPORTTANT_PRISONER = "IMPORTTANT_PRISONER";

        /// <summary>
        /// 能效设备类型
        /// </summary>
        public const string DEVICE_CATEGORY_TERMINAL_01_301 = "DEVICE_CATEGORY_TERMINAL_01_301";

        /// <summary>
        /// 床垫设备类型
        /// </summary>
        public const string DEVICE_CATEGORY_TERMINAL_01_700 = "DEVICE_CATEGORY_TERMINAL_01_700";

        /// <summary>
        /// 手环设备类型
        /// </summary>
        public const string DEVICE_CATEGORY_TERMINAL_01_100 = "DEVICE_CATEGORY_TERMINAL_01_100";
        /// <summary>
        /// 雷达设备类型
        /// </summary>
        public const string DEVICE_CATEGORY_TERMINAL_01_800 = "DEVICE_CATEGORY_TERMINAL_01_800";

        /// <summary>
        /// 胸卡设备类型
        /// </summary>
        public const string DEVICE_CATEGORY_TERMINAL_01_200 = "DEVICE_CATEGORY_TERMINAL_01_200";

        /// <summary>
        /// 床位绑定者类型
        /// </summary>
        public const string MEDICAL_BED = "MEDICAL_BED";

        /// <summary>
        /// 绑定者类型-医院患者
        /// </summary>
        public const string MEDICAL_PATIENTS = "MEDICAL_PATIENTS";

        /// <summary>
        /// 绑定者类型-医院资产
        /// </summary>
        public const string MEDICAL_ASSET = "MEDICAL_ASSET";

        /// <summary>
        /// 绑定者类型-能效资产
        /// </summary>
        public const string ENERGY_ASSET = "ENERGY_ASSET";

        /// <summary>
        /// 绑定者类型-医护人员
        /// </summary>
        public const string MEDICAL_CARE = "MEDICAL_CARE";

        /// <summary>
        /// 绑定者类型-护工人员
        /// </summary>
        public const string MEDICAL_SUPPORTWORKER = "MEDICAL_SUPPORTWORKER";

        /// <summary>
        /// 住院患者绑定者类型
        /// </summary>
        public const string MEDICAL_INPATIENT = "MEDICAL_INPATIENT";

        /// <summary>
        /// 住院患者绑定者类型
        /// </summary>
        public const string MEDICAL_INDOOR = "MEDICAL_INDOOR";

        /// <summary>
        /// 互监告警类型
        /// </summary>
        public const string WarnCategory05 = "WarnCategory05";

        /// <summary>
        /// 工单告警类型
        /// </summary>
        public const string WarnCategory06 = "WarnCategory06";
    }
}
